package us.ajg0702.leaderboards.libs.spigot;

import org.bukkit.Bukkit;
import org.bukkit.Location;

public class LocUtils {
    public static String locToString(Location l) {
        return l.getWorld().getName() + "," + l
                .getX() + "," + l
                .getY() + "," + l
                .getZ() + "," + l
                .getYaw() + "," + l
                .getPitch() + ",";
    }

    public static Location stringToLoc(String s) {
        String[] parts = s.split(",");
        return new Location(
                Bukkit.getWorld(parts[0]),
                dv(parts[1]),
                dv(parts[2]),
                dv(parts[3]),
                fv(parts[4]),
                fv(parts[5]));
    }

    private static double dv(String s) {
        return Double.valueOf(s).doubleValue();
    }

    private static float fv(String s) {
        return Float.valueOf(s).floatValue();
    }
}


*Location:D:\User\Xuan\Downloads\ajLeaderboards-1.3.3.jar\\us\ajg0702\leaderboards\libs\spigot\LocUtils.class
 *Java compiler version:8(52.0)
         *JD-Core Version:1.1.3
